package Domestic;

class AnotherClient implements CallBack{
	public void callBack(int p){
		System.out.println("Square is: " + (p*p));
	}
	public void callBacktoo(){
		System.out.println("Another Client class implemented CallBacktoo method");
	}
}
public class ExampleInterface {
	public static void main(String[] args){
		CallBack c = new Client();
		AnotherClient ac = new AnotherClient();
		c.callBack(42);
		c=ac; //c is assigned as an instance for AnotherClient
		c.callBack(32);
	}
}
